package com.mbrs.msg;

import com.mbrs.repo.MyViewCachedUpdater;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

@Component
public class MsgReceiver {

    @Autowired
    private MyViewCachedUpdater myViewCachedUpdater;

    @KafkaListener(id = "mbrs", topics = "process")
    public void listen(String in) {
        myViewCachedUpdater.updateByProcessJson(in);
    }

}
